package com.website.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

public class DrugsType extends Model<DrugsType> {

    private static final long serialVersionUID = 1L;
    @TableId(value="id", type= IdType.AUTO)
    private int id;
    @TableId(value="type_name")
    private String typeName;


    @Override
    public String toString() {
        return "DrugsType{" +
                "id=" + id +
                ", typeName='" + typeName + '\'' +
                '}';
    }
    public void setId(int id) {
        this.id = id;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public int getId() {
        return id;
    }
    public String getTypeName() {
        return typeName;
    }
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
